package com.yinxin.wudasuanfa.huaweiod.treeSearch;


public class TreeNode {

    String value = null; // 根节点
    TreeNode leftChildren = null; // 左子节点
    TreeNode rightChildren = null; // 右子节点
    public TreeNode(String value, TreeNode leftChildren, TreeNode rightChildren) {
        this.value = value;
        this.leftChildren = leftChildren;
        this.rightChildren = rightChildren;
    }
    public TreeNode(String value) {
        this.value = value;
    }
    public void setValue(String value) {
        this.value = value;
    }
    public void setLeftChildren(TreeNode leftChildren) {
        this.leftChildren = leftChildren;
    }
    public void setRightChildren(TreeNode rightChildren) {
        this.rightChildren = rightChildren;
    }
    public String getValue() {
        return value;
    }
    public TreeNode getLeftChildren() {
        return leftChildren;
    }
    public TreeNode getRightChildren() {
        return rightChildren;
    }
}

